package com.etlmaster.rowprocessor.core;

import com.etlmaster.executor.utils.LogWriter;

/**
 * @author Larry
 * @copyright Larry@etlMaster
 * @since 2017-09-10
 */
public class MyUncaughtExceptionHandler  implements  Thread.UncaughtExceptionHandler{
    @Override
    public void uncaughtException(Thread thread, Throwable ex) {
        LogWriter.addLog("ERROR",ex.getMessage());
        ex.printStackTrace();
    }
}